#include "syslog.h"
#include "head.h"

void SendSysLog(pid_t pid,char* msg)
{
    char name[50] = {0};
    strcpy(name,"server");
    char id[10] = {0};
    sprintf(id,"[%u]",pid);
    strcat(name,id);
    openlog(name,LOG_INFO,LOG_INFO);
    syslog(LOG_INFO,"%s",msg);
    closelog();
}
